let a = 1
function b(){
  console.log(a)
}

function c(){
  let a = 5
  let d = function b(){
    console.log(a)
  }
  d()
}

c()